import Loadable from 'react-loadable'
import React from 'react'
function Loading() {
  return <div />
}
const dynamic = (compPromise: any) => {
  return Loadable({
    loader: () => {
      return compPromise
    },
    loading: Loading,
    delay: 500
  })
}

export default dynamic
